From: Carlos Garnacho Date: Fri, 22 Sep 2023 11:16:59 +0000 (+0200) Subject: slider: Fix check for emulated scroll events X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~301^2^2~30 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=10b0e283e984bc01e90dcb5dcb480822dc06fb47;p=gnome-shell.git slider: Fix check for emulated scroll events The name given by g-i is actually FLAG_POINTER_EMULATED, this made the check slightly ineffective, handling both real and emulated events in the case of touchpad scrolling. Part-of: --- diff --git a/js/ui/slider.js b/js/ui/slider.js index 42f464b71..0aea6d40d 100644 --- a/js/ui/slider.js +++ b/js/ui/slider.js @@ -143,7 +143,7 @@ export const Slider = GObject.registerClass({ let direction = event.get_scroll_direction(); let delta; - if (event.get_flags() & Clutter.EventFlags.POINTER_EMULATED) + if (event.get_flags() & Clutter.EventFlags.FLAG_POINTER_EMULATED) return Clutter.EVENT_PROPAGATE; if (direction === Clutter.ScrollDirection.DOWN) {